
<form id="form_edit">
<table>
	<tr>
		<td align="right">供应商：</td>
		<td colspan="3"><input type="text" name="supplier" id="supplier" size="20"
			value="{[$result.supplier]}:{[$result.supplier_t]}" title="{[$t.supplier]}"> <a href="javascript:void(0)" id="supplier_x"
			onclick="Common.toggle(this, '#label_linkman')" class="ui-icon ui-icon-circle-triangle-w" style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman">
		<td></td>
		<td colspan="3">{[include file="_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">方式：</td>
		<td><select name='way'>
			{[html_options options=$way_option selected=$result.way]}
		</select></td>
		<td align="right">付款：</td>
		<td><select name='payment'>
			{[html_options options=$payment_option selected=$result.payment]}
		</select></td>
	</tr>
	<tr>
		<td align="right">费用：</td>
		<td colspan="3"><input type="text" name="cost" id="cost" size="12" value="{[$result.cost]}"> <select name='currency'
			id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td width="20%" align="right">目的港：</td>
		<td width="30%"><input type="text" name="dst" id="dst" size="16" value="{[$result.dst]}"></td>
		<td width="20%" align="right">送货日期：</td>
		<td width="30%"><input type="text" name="ets" id="ets" size="12" value="{[$result.ets]}"></td>		
	</tr>
	<tr>
		<td align="right">船名/航次：</td>
		<td><input type="text" name="voyage" size="16" value="{[$result.voyage]}"></td>
		<td align="right">截关日期：</td>
		<td><input type="text" name="etc" id="etc" size="12" value="{[$result.etc]}"></td>		
	</tr>
	<tr>
		<td align="right">提单号：</td>
		<td><input type="text" name="number" size="16" value="{[$result.number]}"></td>		
		<td align="right">离港日期：</td>
		<td><input type="text" name="etd" id="etd" size="12" value="{[$result.etd|date_format:'%Y-%m-%d']}"></td>		
	</tr>
	<tr>
		<td align="right"></td>
		<td></td>
		<td align="right">到港日期：</td>
		<td><input type="text" name="eta" id="eta" size="12" value="{[$result.eta]}"></td>
	</tr>
	<tr>
		<td align="right">负责人：</td>
		<td><input type="text" name="emp" id="emp" size="12" value="{[$result.emp]}:{[$result.emp_t]}" title="{[$t.emp_|emp:'负责人']}"> <input type="checkbox"
			name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td align="right">提货日期：</td>
		<td><input type="text" name="date" id="date" size="12" value="{[$result.date|date_format:'%Y-%m-%d']}"></td>		
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript"
	src="js/express/plan/add.js?r={[$smarty.now]}"></script>

<script type='text/javascript'>
var a = $("#cost").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_amount");

_supplier($("#express").val());
</script>
